// DlgYG.cpp : implementation file
//

#include "stdafx.h"
#include "a1.h"
#include "DlgYG.h"


#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CDlgYG dialog


CDlgYG::CDlgYG(CWnd* pParent /*=NULL*/)
	: CDialog(CDlgYG::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDlgYG)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
	m_tabYg=new CTabYG(8);
}


void CDlgYG::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDlgYG)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDlgYG, CDialog)
	//{{AFX_MSG_MAP(CDlgYG)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDlgYG message handlers

void CDlgYG::OnOK() 
{
	// TODO: Add extra validation here
	
	CDialog::OnOK();
}

BOOL CDlgYG::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	CRect rect;
	this->GetClientRect(rect);
	this->m_tabYg->Create(WS_CHILD|WS_VISIBLE|WS_TABSTOP,rect,this,ID_TABCTRL_YG);
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

BOOL CDlgYG::DestroyWindow()
{
	delete this->m_tabYg;
	m_tabYg=NULL;	
	return CDialog::DestroyWindow();
}
